//
//  WBConstant.swift
//  Swift_Weibo
//
//  Created by Tim on 2019/8/13.
//  Copyright © 2019 Tim. All rights reserved.
//  全局公共常量

import UIKit
import SnapKit

/// 当前设备是否为 iPhone X 系列
let isIphoneX = kScreenHeight >= 812

/// 状态栏高度
let kStatusBarHeight : CGFloat = isIphoneX ? 44.0 : 20.0

/// 导航栏高度
let kNavigationBarHeight : CGFloat = (kStatusBarHeight + 44.0)

/// tabBar 高度
let kTabBarHeight : CGFloat = (kStatusBarHeight == 20.0) ? 49.0 : 83.0

/// 顶部安全距离
let kTopSafeArea  = (kStatusBarHeight - 20.0)

/// 底部安全距离
let kBottomSafeArea = kTabBarHeight - 49.0

/// 快速获取屏幕的Bounds属性
let kScreenBounds = UIScreen.main.bounds

/// 屏幕宽度
let kScreenWidth = kScreenBounds.width

/// 屏幕高度
let kScreenHeight = kScreenBounds.height

/// 屏幕宽高
let kScreenSize   = kScreenBounds.size

/// 分辨率缩放比例
let kScreenScale = UIScreen.main.scale
